﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Koala.Pro.Models;

[Serializable]
public class CListItem
{
    public string Text { get; set; } = "";


    public string Value { get; set; } = "";


    public CListItem()
    {
    }

    public CListItem(string text, string value)
    {
        Text = text;
        Value = value;
    }

    public CListItem(string text, object value)
    {
        Text = text;
        Value = value.ToString();
    }

    public CListItem(string text)
    {
        Text = text;
        Value = text;
    }

    public override string ToString()
    {
        return Text.ToString();
    }
}
